package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

//@Mapper
public interface DishFlavorMapper {


//批量插入口味列表
    @AutoFill(OperationType.INSERT)
    void insertBatch(List<DishFlavor> flavors);

    void deleteByDishId(Long id);

    /**
     * 根据菜品id查询口味列表
     * @param id
     * @return
     */
    List<DishFlavor> getByDishId(Long id);
}
